<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:98:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/login/bind_mobile.html";i:1507616704;s:93:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/title.html";i:1506496282;s:91:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/css.html";i:1503480029;s:94:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/header.html";i:1507617957;s:93:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/menu1.html";i:1507602844;s:90:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/js.html";i:1506499226;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo (isset($title) && ($title !== '')?$title:"趁早CPS自助发布系统"); ?></title>
    <meta name="keywords" content="HTML5 Bootstrap 3 Admin Template UI Theme">
    <meta name="description" content="Fusion - A Responsive HTML5 Admin UI Template Theme">
    <meta name="author" content="AdminDesigns">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="/static/vendor/bootstrap/css/bootstrap.min.css">

<!-- Theme CSS -->
<link rel="stylesheet" type="text/css" href="/static/css/vendor.css">
<link rel="stylesheet" type="text/css" href="/static/css/theme.css">
<link rel="stylesheet" type="text/css" href="/static/css/utility.css">
<link rel="stylesheet" type="text/css" href="/static/css/custom.css">

<!-- Favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico">
    <style>
        .table a { color: blue;}
        dl, li { list-style:none;}
        .panel-body dt, .panel-body dd { float: left;}
        .clear {clear: both;}
        .panel-body dt { width: 7%;}
        .panel-body dd { width: 90%;}
        .panel-body dd li { float: left; min-width: 6%; padding: 0 10px;}
        .form-horizontal { padding-left: 30px;}
        .mix { display: block; border: 1px solid #d6d6d6; padding: 5px; text-align: center;}
    </style>
</head>
<body class="dashboard-page">

<header class="navbar navbar-fixed-top">
    <div class="navbar-branding" style="width: 400px;">
        <span id="toggle_sidemenu_l" class="glyphicons glyphicons-show_lines"></span>
        <a class="navbar-brand" href="javascript:;">
            <img src="/static/img/logo.png" />
            <span style="font-size: 12px; font-size: 16px; margin-left: 15px;">趁早CPS自助发布系统</span>
        </a>
    </div>
    <div class="navbar-right">
        <div class="navbar-menus">
            <div class="btn-group" id="alert_menu" style="max-width: 300px;">
                <div class="media" style="float: left;">
                    <a class="pull-left dropdown-toggle" href="#"  data-toggle="dropdown">
                        <div class="media-object border border-purple br64 bw2 p2">
                            <img class="br64" src="<?php echo \think\Session::get('cps_user_head_img'); ?>" style="max-width: 45px;">
                        </div>
                    </a>
                </div>
                <button type="button" class="dropdown-toggle" data-toggle="dropdown" style="float: left;">
                    <?php echo \think\Session::get('cps_user_name'); ?> ▼
                </button>
                <ul class="dropdown-menu media-list" role="menu" style="min-width: 100px;">
                    <li class="p15 pb10">
                        <ul class="list-unstyled">
                            <li><a href="/index/login/login_out">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</header>

<!-- Start: Main -->
<div id="main">

    <!-- Start: Sidebar -->
    <aside id="sidebar_left">
        <div class="sidebar-menu">
            <!--菜单-->
            <ul class="nav">
    <li class="active">
        <a href="javascript:;">
            <span class="glyphicons glyphicons-show_big_thumbnails"></span>
            <span class="sidebar-title">注册</span>
        </a>
    </li>
</ul>
        </div>
    </aside>

    <!-- Start: Content -->
    <section id="content_wrapper">
        <div id="topbar">
            <div id="content">
                <div class="row">
                    <div class="col-md-6">
                        <div class="panel">
                            <div class="panel-heading"> <span class="panel-title">注册为CPS发布商</span> </div>
                            <div class="panel-body">
                                <form class="cmxform" id="form1" method="post" action="/index/login/to_bind_mobile" gotourl="/index">
                                    <div class="form-group">
                                        <input id="username" name="username" type="text" class="form-control" maxlength="20" placeholder="您的姓名" required="" />
                                    </div>
                                    <div class="form-group">
                                        <input id="mobile" name="mobile" type="number" class="form-control" maxlength="11" placeholder="手机号" required="" />
                                    </div>
                                    <div class="form-group">
                                        <input type="number" class="form-control" name="code" maxlength="4" autocomplete="off" placeholder="验证码" style="width: 50%; float: left;" />
                                        <input class="submit btn btn-alert pull-right" id="get_code" type="button" value="获取验证码" onclick="send(this)">
                                    </div>
                                    <div style="clear: both;"></div>
                                    <div class="form-group" style="margin-top: 20px;">
                                        <input class="submit btn btn-alert pull-right" type="button" value="注册" onclick="form_add()" />
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </section>

</div>
<!-- End #Main -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<!-- jQuery -->
<script type="text/javascript" src="/static/vendor/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/static/vendor/jquery/jquery_ui/jquery-ui.min.js"></script> <!-- Bootstrap -->
<script type="text/javascript" src="/static/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Flot Plugins -->
<script type="text/javascript" src="/static/vendor/plugins/jqueryflot/jquery.flot.min.js"></script>

<script type="text/javascript" src="/static/js/ajax.js"></script>

<script type="text/javascript" src="/static/js/main.js"></script>
<script type="text/javascript" src="/static/system/layer/layer.js"></script>
<script type="text/javascript" src="/static/system/ajaxfileupload.js"></script>
<script type="text/javascript" src="/static/system/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/static/system/jquery.form.js"></script>
<script type="text/javascript" src="/static/system/form.js"></script>

<script type="text/javascript">
    jQuery(document).ready(function () {
        Core.init();
    });
</script>
<script>
    var countdown = 60;
    function send(obj)
    {
        var mobile = $('#mobile').val();
        if (!checkMobile(mobile)) {
            layer.msg('请输入正确的手机号', {icon: 5});
            return;
        }
        layer.load();
        $.post('/index/login/send_code', {mobile:mobile}, function(data){
            layer.closeAll('loading');
            if (data.code != 1) {
                layer.msg(data.msg, {icon: 5});
                return;
            }
            settime(obj);
        });
    }
    function settime(obj)
    {
        $(obj).removeClass('btn-alert');
        if (countdown == 0) {
            obj.removeAttribute("disabled");
            obj.value="获取验证码";
            countdown = 60;
            $(obj).addClass('btn-alert');
            return;
        } else {
            obj.setAttribute("disabled", true);
            obj.value="重新发送(" + countdown + ")s";
            countdown--;
        }
        setTimeout(function() {
            settime(obj);
        } ,1000)
    }
    function checkMobile(s)
    {
        var length = s.length;
        if(length == 11 && /^1[3|4|5|7|8][0-9]{9}$/.test(s) )
        {
            return true;
        }else{
            return false;
        }
    }
</script>
</body>
</html>
